package org.dzq.designmode.interpreter;

import java.util.Map;

/**
 * @ClassName: AddExpression
 * @Package: org.dzq.designmode.interpreter
 * @author: 越
 * @date: 2023/6/19 21:32
 * @Description:
 */
public class AddExpression extends SymbolExpression{

    public AddExpression(Expression left, Expression right) {
        super(left, right);
    }

    @Override
    public int interpreter(Map<String, Integer> var) {
        return left.interpreter(var) + right.interpreter(var);
    }
}
